//
//  RootController.h
//  diaoyuren
//
//  Created by 钓鱼人 on 15/12/18.
//  Copyright © 2015年 game. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AppDelegate.h"
#import "AticHeadView.h"
#import "UserDataModel.h"
#import "MBProgressHUD+MJ.h"
@interface RootController : UIViewController
@property (nonatomic,strong) AppDelegate *app;
@property (nonatomic,copy)NSString * str;

@property (nonatomic,copy) NSString *UserName;
@property (nonatomic,copy) NSString *UserPass;
@property (nonatomic,strong) NSDictionary *UserDic;
@property (nonatomic,strong) AticHeadView *Navview;

@property (nonatomic,strong) NSUserDefaults *Myud;

@property (nonatomic,strong) MBProgressHUD *HUD;

-(void)creatHuD:(NSString*)title;

-(UIView *)CreatNavViewWhithTitle:(NSString *)title;

-(UITableView *)CreatTableview:(UITableView *)tableview WhithRect:(CGRect)rect AndStyle:(UITableViewStyle)style;


-(UIView *)LinViewWhithRcet:(CGRect)rect;


-(UIButton *)CreatBntWhithRect:(CGRect)rect AndType:(UIButtonType)type AndBntImgName:(NSString *)string AndTitle:(NSString *)title;


-(UILabel *)CrectLabelWhithRect:(CGRect)rect;


-(UIView *)Linview:(CGRect)rect BackgroundColor:(UIColor *)color AddView:(UIView *)Addview;

-(CGRect )CountTextWhithSize:(CGSize)size AndString:(NSString *)str AndfFontSize:(CGFloat)X;

-(UIButton *)CreatBntAddView:(UIView *)view WhithRect:(CGRect)rect AndType:(UIButtonType)type AndBntImgName:(NSString *)string AndTitle:(NSString *)title Font:(CGFloat)font;

-(UILabel *)CreatLabelWhithRect:(CGRect )rect Text:(NSString *)text TextColor:(UIColor *)color Font:(CGFloat)font AddView:(UIView *)fatherView;

-(UIImageView *)CreactImageViewWhithRect:(CGRect )rect ImageName:(NSString *)image FatherView:(UIView *)fatherview;

- (UIAlertController *)ShowAlertWhthTitle:(NSString *)title Message:(NSString *)message CancelButtonTitle:(NSString *)cancelButtonTitle;

-(UITextField *)CrectTextFieldWhithRect:(CGRect )rect Placeholder:(NSString *)string FatherView:(UIView *)fatherView;

-(UIImage *)ReplaceImage;
@end
